﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebFrontEnd
{
    public partial class Users : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var user = GetCurrentUser();
            if (user.Role != BusinessLayer.BLServerReference.Role.Admin)
            {
                Response.Clear();
                Response.StatusCode = 403;
                Server.Transfer("ErrorPages/403.aspx");
            }
        }
    }
}